﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace FlexiCommerce.Configuration
{
    public class PatternValueCollection : ConfigurationElementCollection
    {
        public PatternValueCollection()
        {
            //BaseAdd(new PatternValueElement("åäáàâã@", "a", true));
            //BaseAdd(new PatternValueElement("ÅÄÁÀÂÃ", "a", true));
            //BaseAdd(new PatternValueElement("æ", "ae", true));
            //BaseAdd(new PatternValueElement("Æ", "AE", true));
            //BaseAdd(new PatternValueElement("öøôõ", "o", true));
            //BaseAdd(new PatternValueElement("ÖØÔÕ", "O", true));
        }
        protected override ConfigurationElement CreateNewElement()
        {
            return new PatternValueElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((PatternValueElement)element).Pattern;
        }
    }
}
